<form id="trainingform" method="post" action="<?php echo $this->url(array("controller"=>"training","module"=>"default","action"=>"save"));?>">
<div style="clear:both"><label>Titre formation : </label><?php echo $this->formText("trainingName",isset($this->formdata['name']) ? $this->formdata['name'] : null);?></div>
<div style="clear:both"><label>R&#233;mun&#233;ration : </label><?php echo $this->formSelect("trainingPayment",isset($this->formdata['trpayment']) ? $this->formdata['trpayment'] : null,null,$this->payment);?></div>
<div style="clear:both"><label style="float:left">Departement : </label><div style="float:left"><?php echo $this->formSelect("commune",$this->formdata['selectedzoneval'] ,array("multiple"=>"multiple"),$this->formdata['selectedzone']);?></div></div>
<div style="clear:both"><label style="float:left">Categorie : </label><div style="float:left"><?php echo $this->formSelect('expertises',$this->formdata['selectedexpertise'],array("multiple"=>"multiple"),$this->categories);?></div></div>
<div style="clear:both"><label>Description : </label><?php echo $this->formTextarea("trainingDetails",isset($this->formdata['detail'])? $this->formdata['detail'] : null,array("rows"=>20,"cols"=>100));?></div>
<?php if($this->rule=="trainer"):?>

<?php endif;?>
<?php echo $this->formHidden("id",$this->formdata['id']);?>
<div><?php echo $this->formSubmit("save","Enregistrer");?></div>
</form>
<?php echo $this->headScript()->appendFile('/js/jquery.validate.min.js','text/javascript');?>